﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class Layout
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class Layout
   ">
    <meta name="generator" content="docfx 2.56.4.0">
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="CADability.Layout">
  
  
  <h1 id="CADability_Layout" data-uid="CADability.Layout" class="text-break">Class Layout
  </h1>
  <div class="markdown level0 summary"><p>A Layout defines the placement of one or more patches on a
paper. A patch is the projection of a model into the two dimensional space with respect to scaling, projection direction,
visibility of layers etc.
A Layout can be viewed with the LayoutView and can be printed.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">Layout</span></div>
  </div>
  <div classs="implements">
    <h5>Implements</h5>
    <div><span class="xref">System.Runtime.Serialization.ISerializable</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CADability.html">CADability</a></h6>
  <h6><strong>Assembly</strong>: CADability.dll</h6>
  <h5 id="CADability_Layout_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Serializable]
public class Layout : ISerializable</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout__ctor_CADability_Project_.md&amp;value=---%0Auid%3A%20CADability.Layout.%23ctor(CADability.Project)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L33">View Source</a>
  </span>
  <a id="CADability_Layout__ctor_" data-uid="CADability.Layout.#ctor*"></a>
  <h4 id="CADability_Layout__ctor_CADability_Project_" data-uid="CADability.Layout.#ctor(CADability.Project)">Layout(Project)</h4>
  <div class="markdown level1 summary"><p>Creates an empty Layout</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Layout(Project project)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="CADability.Project.html">Project</a></td>
        <td><span class="parametername">project</span></td>
        <td><p>The <a class="xref" href="CADability.Project.html">Project</a> containing the layout</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_.md&amp;value=---%0Auid%3A%20CADability.Layout.%23ctor(System.Runtime.Serialization.SerializationInfo%2CSystem.Runtime.Serialization.StreamingContext)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L288">View Source</a>
  </span>
  <a id="CADability_Layout__ctor_" data-uid="CADability.Layout.#ctor*"></a>
  <h4 id="CADability_Layout__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="CADability.Layout.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">Layout(SerializationInfo, StreamingContext)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected Layout(SerializationInfo info, StreamingContext context)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Runtime.Serialization.SerializationInfo</span></td>
        <td><span class="parametername">info</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Runtime.Serialization.StreamingContext</span></td>
        <td><span class="parametername">context</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_pageSettings.md&amp;value=---%0Auid%3A%20CADability.Layout.pageSettings%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L27">View Source</a>
  </span>
  <h4 id="CADability_Layout_pageSettings" data-uid="CADability.Layout.pageSettings">pageSettings</h4>
  <div class="markdown level1 summary"><p>The printer settings.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public PageSettings pageSettings</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Drawing.Printing.PageSettings</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_Name.md&amp;value=---%0Auid%3A%20CADability.Layout.Name%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L268">View Source</a>
  </span>
  <a id="CADability_Layout_Name_" data-uid="CADability.Layout.Name*"></a>
  <h4 id="CADability_Layout_Name" data-uid="CADability.Layout.Name">Name</h4>
  <div class="markdown level1 summary"><p>Gets or sets the name of the layout.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string Name { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_PaperHeight.md&amp;value=---%0Auid%3A%20CADability.Layout.PaperHeight%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L254">View Source</a>
  </span>
  <a id="CADability_Layout_PaperHeight_" data-uid="CADability.Layout.PaperHeight*"></a>
  <h4 id="CADability_Layout_PaperHeight" data-uid="CADability.Layout.PaperHeight">PaperHeight</h4>
  <div class="markdown level1 summary"><p>Gets or sets the height of the total layout area. When printing the layout this
is assumed to be in mm</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double PaperHeight { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_PaperWidth.md&amp;value=---%0Auid%3A%20CADability.Layout.PaperWidth%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L239">View Source</a>
  </span>
  <a id="CADability_Layout_PaperWidth_" data-uid="CADability.Layout.PaperWidth*"></a>
  <h4 id="CADability_Layout_PaperWidth" data-uid="CADability.Layout.PaperWidth">PaperWidth</h4>
  <div class="markdown level1 summary"><p>Gets or sets the width of the total layout area. When printing the layout this
is assumed to be in mm</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double PaperWidth { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_PatchCount.md&amp;value=---%0Auid%3A%20CADability.Layout.PatchCount%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L93">View Source</a>
  </span>
  <a id="CADability_Layout_PatchCount_" data-uid="CADability.Layout.PatchCount*"></a>
  <h4 id="CADability_Layout_PatchCount" data-uid="CADability.Layout.PatchCount">PatchCount</h4>
  <div class="markdown level1 summary"><p>Returns the number of the patches</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int PatchCount { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_AddPatch_CADability_Model_CADability_Projection_CADability_Shapes_Border_.md&amp;value=---%0Auid%3A%20CADability.Layout.AddPatch(CADability.Model%2CCADability.Projection%2CCADability.Shapes.Border)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L58">View Source</a>
  </span>
  <a id="CADability_Layout_AddPatch_" data-uid="CADability.Layout.AddPatch*"></a>
  <h4 id="CADability_Layout_AddPatch_CADability_Model_CADability_Projection_CADability_Shapes_Border_" data-uid="CADability.Layout.AddPatch(CADability.Model,CADability.Projection,CADability.Shapes.Border)">AddPatch(Model, Projection, Border)</h4>
  <div class="markdown level1 summary"><p>Adds a &quot;patch&quot; to the layout. A patch is a a model with a certain
projection placed on a section of the layout. The projection includes
the placement of the model inside the section and the scaling.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void AddPatch(Model model, Projection projection, Border area)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="CADability.Model.html">Model</a></td>
        <td><span class="parametername">model</span></td>
        <td><p>The model for the patch</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Projection.html">Projection</a></td>
        <td><span class="parametername">projection</span></td>
        <td><p>the projection for the model</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Shapes.Border.html">Border</a></td>
        <td><span class="parametername">area</span></td>
        <td><p>The area on the layout</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_AddPatch_CADability_Model_CADability_Projection_CADability_Shapes_Border_CADability_LayoutView_.md&amp;value=---%0Auid%3A%20CADability.Layout.AddPatch(CADability.Model%2CCADability.Projection%2CCADability.Shapes.Border%2CCADability.LayoutView)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L62">View Source</a>
  </span>
  <a id="CADability_Layout_AddPatch_" data-uid="CADability.Layout.AddPatch*"></a>
  <h4 id="CADability_Layout_AddPatch_CADability_Model_CADability_Projection_CADability_Shapes_Border_CADability_LayoutView_" data-uid="CADability.Layout.AddPatch(CADability.Model,CADability.Projection,CADability.Shapes.Border,CADability.LayoutView)">AddPatch(Model, Projection, Border, LayoutView)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void AddPatch(Model model, Projection projection, Border area, LayoutView layoutView)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="CADability.Model.html">Model</a></td>
        <td><span class="parametername">model</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Projection.html">Projection</a></td>
        <td><span class="parametername">projection</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Shapes.Border.html">Border</a></td>
        <td><span class="parametername">area</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.LayoutView.html">LayoutView</a></td>
        <td><span class="parametername">layoutView</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_AddVisibleLayer_System_Int32_CADability_Attribute_Layer_.md&amp;value=---%0Auid%3A%20CADability.Layout.AddVisibleLayer(System.Int32%2CCADability.Attribute.Layer)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L213">View Source</a>
  </span>
  <a id="CADability_Layout_AddVisibleLayer_" data-uid="CADability.Layout.AddVisibleLayer*"></a>
  <h4 id="CADability_Layout_AddVisibleLayer_System_Int32_CADability_Attribute_Layer_" data-uid="CADability.Layout.AddVisibleLayer(System.Int32,CADability.Attribute.Layer)">AddVisibleLayer(Int32, Layer)</h4>
  <div class="markdown level1 summary"><p>Marks the given Layer as visible in the context of this ProjectedModel.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void AddVisibleLayer(int index, Layer l)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Attribute.Layer.html">Layer</a></td>
        <td><span class="parametername">l</span></td>
        <td><p>The layer</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_CenterPatch_System_Int32_System_Double_CADability_Layout_HorizontalCenter_CADability_Layout_VerticalCenter_.md&amp;value=---%0Auid%3A%20CADability.Layout.CenterPatch(System.Int32%2CSystem.Double%2CCADability.Layout.HorizontalCenter%2CCADability.Layout.VerticalCenter)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L139">View Source</a>
  </span>
  <a id="CADability_Layout_CenterPatch_" data-uid="CADability.Layout.CenterPatch*"></a>
  <h4 id="CADability_Layout_CenterPatch_System_Int32_System_Double_CADability_Layout_HorizontalCenter_CADability_Layout_VerticalCenter_" data-uid="CADability.Layout.CenterPatch(System.Int32,System.Double,CADability.Layout.HorizontalCenter,CADability.Layout.VerticalCenter)">CenterPatch(Int32, Double, Layout.HorizontalCenter, Layout.VerticalCenter)</h4>
  <div class="markdown level1 summary"><p>Centers the patch with the given index according to the horizontal and vertical
center mode. If scale is 0.0 the current scaling remains unchanged.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void CenterPatch(int index, double scale, Layout.HorizontalCenter hor, Layout.VerticalCenter ver)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td><p>index of the patch</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">scale</span></td>
        <td><p>scaling factor or 0.0</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Layout.HorizontalCenter.html">Layout.HorizontalCenter</a></td>
        <td><span class="parametername">hor</span></td>
        <td><p>horizontal position mode</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Layout.VerticalCenter.html">Layout.VerticalCenter</a></td>
        <td><span class="parametername">ver</span></td>
        <td><p>vertical position mode</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_Finalize.md&amp;value=---%0Auid%3A%20CADability.Layout.Finalize%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L38">View Source</a>
  </span>
  <a id="CADability_Layout_Finalize_" data-uid="CADability.Layout.Finalize*"></a>
  <h4 id="CADability_Layout_Finalize" data-uid="CADability.Layout.Finalize">Finalize()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected void Finalize()</code></pre>
  </div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_GetPatch_System_Int32_CADability_Model__CADability_Projection__CADability_Shapes_Border__.md&amp;value=---%0Auid%3A%20CADability.Layout.GetPatch(System.Int32%2CCADability.Model%40%2CCADability.Projection%40%2CCADability.Shapes.Border%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L104">View Source</a>
  </span>
  <a id="CADability_Layout_GetPatch_" data-uid="CADability.Layout.GetPatch*"></a>
  <h4 id="CADability_Layout_GetPatch_System_Int32_CADability_Model__CADability_Projection__CADability_Shapes_Border__" data-uid="CADability.Layout.GetPatch(System.Int32,CADability.Model@,CADability.Projection@,CADability.Shapes.Border@)">GetPatch(Int32, out Model, out Projection, out Border)</h4>
  <div class="markdown level1 summary"><p>Returns the data that describe the patch with the given index.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void GetPatch(int index, out Model model, out Projection projection, out Border area)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td><p>Index of the patch</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Model.html">Model</a></td>
        <td><span class="parametername">model</span></td>
        <td><p>The model for the patch</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Projection.html">Projection</a></td>
        <td><span class="parametername">projection</span></td>
        <td><p>the projection for the model</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Shapes.Border.html">Border</a></td>
        <td><span class="parametername">area</span></td>
        <td><p>The area on the layout</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_IsLayerVisible_System_Int32_CADability_Attribute_Layer_.md&amp;value=---%0Auid%3A%20CADability.Layout.IsLayerVisible(System.Int32%2CCADability.Attribute.Layer)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L229">View Source</a>
  </span>
  <a id="CADability_Layout_IsLayerVisible_" data-uid="CADability.Layout.IsLayerVisible*"></a>
  <h4 id="CADability_Layout_IsLayerVisible_System_Int32_CADability_Attribute_Layer_" data-uid="CADability.Layout.IsLayerVisible(System.Int32,CADability.Attribute.Layer)">IsLayerVisible(Int32, Layer)</h4>
  <div class="markdown level1 summary"><p>Determins whether the given <a class="xref" href="CADability.Attribute.Layer.html">Layer</a> is marked visible in the context of this ProjectedModel.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool IsLayerVisible(int index, Layer l)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Attribute.Layer.html">Layer</a></td>
        <td><span class="parametername">l</span></td>
        <td><p>The layer</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_MovePatch_System_Int32_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20CADability.Layout.MovePatch(System.Int32%2CSystem.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L199">View Source</a>
  </span>
  <a id="CADability_Layout_MovePatch_" data-uid="CADability.Layout.MovePatch*"></a>
  <h4 id="CADability_Layout_MovePatch_System_Int32_System_Double_System_Double_" data-uid="CADability.Layout.MovePatch(System.Int32,System.Double,System.Double)">MovePatch(Int32, Double, Double)</h4>
  <div class="markdown level1 summary"><p>Places the patch on the paper leaving the scalinfactor unchanged. The parameters
specify the position of the model origin on the paper.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void MovePatch(int index, double xPos, double yPos)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">xPos</span></td>
        <td><p>horizontal position of the origin</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">yPos</span></td>
        <td><p>vertical position of the origin</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_RemovePatch_System_Int32_.md&amp;value=---%0Auid%3A%20CADability.Layout.RemovePatch(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L78">View Source</a>
  </span>
  <a id="CADability_Layout_RemovePatch_" data-uid="CADability.Layout.RemovePatch*"></a>
  <h4 id="CADability_Layout_RemovePatch_System_Int32_" data-uid="CADability.Layout.RemovePatch(System.Int32)">RemovePatch(Int32)</h4>
  <div class="markdown level1 summary"><p>Removes the patch with the given index</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void RemovePatch(int index)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_RemoveVisibleLayer_System_Int32_CADability_Attribute_Layer_.md&amp;value=---%0Auid%3A%20CADability.Layout.RemoveVisibleLayer(System.Int32%2CCADability.Attribute.Layer)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L221">View Source</a>
  </span>
  <a id="CADability_Layout_RemoveVisibleLayer_" data-uid="CADability.Layout.RemoveVisibleLayer*"></a>
  <h4 id="CADability_Layout_RemoveVisibleLayer_System_Int32_CADability_Attribute_Layer_" data-uid="CADability.Layout.RemoveVisibleLayer(System.Int32,CADability.Attribute.Layer)">RemoveVisibleLayer(Int32, Layer)</h4>
  <div class="markdown level1 summary"><p>Marks the given Layer as invisible in the context of this ProjectedModel.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void RemoveVisibleLayer(int index, Layer l)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Attribute.Layer.html">Layer</a></td>
        <td><span class="parametername">l</span></td>
        <td><p>The layer</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_SetPatch_System_Int32_CADability_Model_CADability_Projection_CADability_Shapes_Border_.md&amp;value=---%0Auid%3A%20CADability.Layout.SetPatch(System.Int32%2CCADability.Model%2CCADability.Projection%2CCADability.Shapes.Border)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L117">View Source</a>
  </span>
  <a id="CADability_Layout_SetPatch_" data-uid="CADability.Layout.SetPatch*"></a>
  <h4 id="CADability_Layout_SetPatch_System_Int32_CADability_Model_CADability_Projection_CADability_Shapes_Border_" data-uid="CADability.Layout.SetPatch(System.Int32,CADability.Model,CADability.Projection,CADability.Shapes.Border)">SetPatch(Int32, Model, Projection, Border)</h4>
  <div class="markdown level1 summary"><p>Changes the data of the patch with the given index.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SetPatch(int index, Model model, Projection projection, Border area)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td><p>Index of the patch</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Model.html">Model</a></td>
        <td><span class="parametername">model</span></td>
        <td><p>The model for the patch</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Projection.html">Projection</a></td>
        <td><span class="parametername">projection</span></td>
        <td><p>the projection for the model</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Shapes.Border.html">Border</a></td>
        <td><span class="parametername">area</span></td>
        <td><p>The area on the layout</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="eii">Explicit Interface Implementations
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout_System_Runtime_Serialization_ISerializable_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_.md&amp;value=---%0Auid%3A%20CADability.Layout.System%23Runtime%23Serialization%23ISerializable%23GetObjectData(System.Runtime.Serialization.SerializationInfo%2CSystem.Runtime.Serialization.StreamingContext)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L315">View Source</a>
  </span>
  <a id="CADability_Layout_System_Runtime_Serialization_ISerializable_GetObjectData_" data-uid="CADability.Layout.System#Runtime#Serialization#ISerializable#GetObjectData*"></a>
  <h4 id="CADability_Layout_System_Runtime_Serialization_ISerializable_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="CADability.Layout.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">ISerializable.GetObjectData(SerializationInfo, StreamingContext)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Runtime.Serialization.SerializationInfo</span></td>
        <td><span class="parametername">info</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Runtime.Serialization.StreamingContext</span></td>
        <td><span class="parametername">context</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="implements">Implements</h3>
  <div>
      <span class="xref">System.Runtime.Serialization.ISerializable</span>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Layout.md&amp;value=---%0Auid%3A%20CADability.Layout%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/Layout.cs/#L17" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
                <h5>In This Article</h5>
                <div></div>
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
